﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YiMeiJiaLibModel.Business.Dto
{
    public partial class CoreCmsGoodsDto : CoreCmsGoods
    {
        /// <summary>
        ///     货品编码
        /// </summary>
        
        public string sn { get; set; }

        /// <summary>
        ///     销售价
        /// </summary>
       
        public decimal price { get; set; } = 0;

        /// <summary>
        ///     成本价
        /// </summary>
       
        public decimal costprice { get; set; } = 0;

        /// <summary>
        ///     市场价
        /// </summary>
        
        public decimal mktprice { get; set; } = 0;


        /// <summary>
        ///     库存
        /// </summary>
       
        public int stock { get; set; } = 0;

        /// <summary>
        ///     冻结库存
        /// </summary>
        
        public int freezeStock { get; set; } = 0;

        /// <summary>
        ///     重量
        /// </summary>
        
        public decimal weight { get; set; } = 0;

        /// <summary>
        ///     积分抵扣金额
        /// </summary>
        
        public decimal pointsDeduction { get; set; } = 0;

        /// <summary>
        ///     赠送积分
        /// </summary>
         
        public int points { get; set; } = 0;

        /// <summary>
        ///     图集
        /// </summary>
        
        public string[] album { get; set; }

        /// <summary>
        ///     品牌数据
        /// </summary>
         
        public CoreCmsBrand brand { get; set; }

        /// <summary>
        ///     关联参数
        /// </summary>
        
        public CoreCmsProducts product { get; set; } = new();

        /// <summary>
        ///     关联SKU
        /// </summary>
        
        public List<CoreCmsProducts> sku { get; set; } = new();

        /// <summary>
        /// 商品规格
        /// </summary>
       
        public Dictionary<string, Dictionary<string, DefaultSpesDesc>> specification { get; set; } = new();

        /// <summary>
        ///     关联SKU
       
        public CoreCmsProductsView skuList { get; set; } = new();

        /// <summary>
        ///     是否收藏
        /// </summary>
         
        public bool isFav { get; set; } = false;


        /// <summary>
        ///     关联拼团规则
        /// </summary>
        
        public CoreCmsPinTuanRuleDto pinTuanRule { get; set; } = null;

        /// <summary>
        ///     拼团价格
        /// </summary>
       
        public decimal pinTuanPrice { get; set; } = 0;

        /// <summary>
        ///     拼团记录
        /// </summary>
        
        public List<CoreCmsPinTuanRecordDto> pinTuanRecord { get; set; } = new();


        /// <summary>
        ///     拼团记录数量
        /// </summary>
        
        public int pinTuanRecordNums { get; set; } = 0;

        /// <summary>
        ///     拼团总单数
        /// </summary>
        
        public int buyPinTuanCount { get; set; } = 0;

        /// <summary>
        ///     团购秒杀促销总单数
        /// </summary>
        
        public int buyPromotionCount { get; set; } = 0;

        /// <summary>
        ///     标签列表
        /// </summary>
        
        public List<CoreCmsLabel> labels { get; set; } = new();

        /// <summary>
        ///     所属团购秒杀
        /// </summary>
        
        public int groupId { get; set; }

        public int groupType { get; set; }

       public bool groupStatus { get; set; }

       public DateTime groupTime { get; set; }

         public DateTime groupStartTime { get; set; }

         public DateTime groupEndTime { get; set; }

         public int groupTimestamp { get; set; }


        /// <summary>
        ///     sku最小价格
        /// </summary>
        
        public decimal minPrice { get; set; } = 0;

        /// <summary>
        ///     sku最大价格
        /// </summary>
         
        public decimal maxPrice { get; set; } = 0;

    }
}
